package com.px.service;

import com.px.mapper.DicDao;
import com.px.pojo.ShDic;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DicServiceProviderImpl implements DicServiceProvider {

    @Resource
    private DicDao dicDao;
    /**
     * 根据一级分类查询它所有的二级分类
     *
     * @param dicId
     * @return
     * @throws Exception
     */
    @Override
    public List<ShDic> getTypeNameByDicId(Integer dicId) throws Exception {
        return dicDao.selectByDicId(dicId);
    }
}
